package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.dto.BaseNewsIssueQueryDto;
import com.kaili.basic.pojo.entity.BaseNewsIssueVO;
import com.kaili.basic.pojo.vo.BaseNewsVO;

import java.util.List;

/**
 * 新闻服务层
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-27.
 * @modified:
 */
public interface BaseNewsService {

    //新增新闻
    public boolean addNews(BaseNewsIssueVO newsIssue,List<String> fileTypes,List<byte[]> byteList);


    //修改新闻
    public boolean ediNews(BaseNewsIssueVO newsIssue);


    //根据ID查询新闻
    public BaseNewsIssueVO getNewsIssueById(Long newsId);

    //分页查询新闻
    public Page<BaseNewsVO> queryPagedList(Page<BaseNewsIssueVO> page, BaseNewsIssueVO newsIssue);

    //通知查询页面分页查询
    public Page<BaseNewsVO> queryForNews(Page<BaseNewsIssueVO> page, BaseNewsIssueVO newsIssue);

    //标题模糊查询
    public List<String> queryLikeTitle(String newsTitle);

    //修改通知为已读
    public boolean ediNewsIsRead(BaseNewsIssueVO issue);
}
